﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ACH
{
    public partial class CreateRoomType : Form
    {
        public CreateRoomType()
        {
            InitializeComponent();
        }

        private void btnCreateRoomType_Click(object sender, EventArgs e)
        {
            try
            {
                //ACHDataSetTableAdapters.RoomTypesTableAdapter r = new ACHDataSetTableAdapters.RoomTypesTableAdapter();
                //int returnValue = r.Insert(Guid.NewGuid().ToString(), (int)numNoOfBeds.Value, (int)numPriceBedKid.Value, (int)numPriceBedAdult.Value, (int)numPriceBedGuestKid.Value, (int)numPriceBedGuestAdult.Value,
                //    DateTime.Now, DateTime.Now, "PAUL", "PAUL");
                //if (returnValue != 1)
                //    MessageBox.Show("error");

                //else
                //{
                //    this.DialogResult = System.Windows.Forms.DialogResult.OK;
                //    this.Close();
                //}
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Close();
        }
    }
}
